<template>
<el-container>
  <el-row>
    <el-col :span="12">
      <el-button @click="login">登录</el-button>
    </el-col>
  </el-row>
</el-container>
</template>

<script>
export default {
  name: "default",
  methods:{
    login(){
      //直接跳转
      this.$router.push('/login');
      debugger;
      console.log(this.$router);
    }
  }
}
</script>

<style scoped>

</style>